package com.glory.wxelectricitypda.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.wxelectricitypda.R;
import com.glory.wxelectricitypda.bean.LabelListingBean;

import java.util.List;

public class LabelListingAdapter extends BaseQuickAdapter<LabelListingBean.XPACKAGEDETAILDTO, BaseViewHolder> {

    public LabelListingAdapter(@Nullable List<LabelListingBean.XPACKAGEDETAILDTO> data) {
        super(R.layout.adapter_label_listing,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, LabelListingBean.XPACKAGEDETAILDTO item) {
        helper.setText(R.id.packLotid,item.getPACKLOTID());
        helper.setText(R.id.packMainQty,String.valueOf(item.getPACKMAINQTY()));
        helper.setText(R.id.storageId,item.getSTORAGEID());
        helper.setText(R.id.code,item.getCODE());
    }
}
